﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucProduct.ascx.cs" Inherits="SES.CMS.AdminCP.PageUC.ucProduct" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<style type="text/css">
    td.tdTitle
    {
        height: 20px;
        margin-left: 2px;
        width: 150px;
        font-family: Times New Roman, Arial, Tahoma;
        font-size: 15px;
        color: #000;
    }
    td.tdTitle p
    {
        height: 20px;
        margin: 0px;
        padding: 0px;
        color: #000;
        width: 109px;
    }
    td.tdContent
    {
    }
    .style1
    {
        width: 339px;
    }
</style>
<h2>
    Sản phẩm</h2>
<table width="100%" border="1">
    <tr>
        <td class="tdTitle">
            <p>
                Tên sản phẩm:</p>
        </td>
        <td class="style1">
            <asp:TextBox ID="txtTenSanPham" runat="server" Width="235px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ErrorMessage="***" ControlToValidate="txtTenSanPham"></asp:RequiredFieldValidator>
        </td>
        <td class="tdTitle">
            <p>
                Mã sản phẩm TA:</p>
        </td>
        <td>
            <asp:TextBox ID="txtMaSanPham" runat="server" Width="235px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            <p>
                Tên sản phẩm TA:</p>
        </td>
        <td class="style1">
            <asp:TextBox ID="txteTenSanPham" runat="server" Width="235px"></asp:TextBox>
        </td>
        <td class="tdTitle">
            <p>
                Phân loại sản phẩm:</p>
        </td>
        <td>
            <asp:DropDownList runat="server" ID="ddlPhanLoai" AppendDataBoundItems="true">
                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
                <asp:ListItem Text=".: Phục vụ trang điểm :." Value="1"></asp:ListItem>
                <asp:ListItem Text=".: Chăm sóc da :." Value="2"></asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            <p>
                Giá bán</p>
        </td>
        <td class="style1">
            <asp:TextBox ID="txtGia" runat="server" Width="235px"></asp:TextBox>
            <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtGia"
                ErrorMessage="***" MaximumValue="9999999999" MinimumValue="0" Type="Double"></asp:RangeValidator>
        </td>
        <td class="tdTitle">
            <p>
                Giảm giá</p>
        </td>
        <td>
            <asp:TextBox ID="txtGiamGia" runat="server" Width="235px"></asp:TextBox>
            <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtGiamGia"
                ErrorMessage="Giá trị không đúng" MaximumValue="9999999999" MinimumValue="0"
                Type="Double"></asp:RangeValidator>
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            <p>
                Bộ sưu tập:</p>
        </td>
        <td class="style1">
            <asp:DropDownList ID="drpNhanHieu" runat="server" Width="135px" AppendDataBoundItems="true">
                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
            </asp:DropDownList>
            Xuất xứ
            <asp:DropDownList ID="ddlXuatXu" runat="server" Width="135px" AppendDataBoundItems="true">
                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
            </asp:DropDownList>
        </td>
        <td class="tdTitle">
            <p>
                Sản phẩm mới</p>
        </td>
        <td>
            <asp:CheckBox ID="cbSanPhamMoi" runat="server" />
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            <p>
                Loại sản phẩm:</p>
        </td>
        <td class="style1">
            <asp:DropDownList ID="drpLoaiSanPham" runat="server" Width="135px" AppendDataBoundItems="true">
                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
            </asp:DropDownList>
            Đơn vị:
            <asp:DropDownList ID="drpDonViTinh" runat="server" Width="116px" AppendDataBoundItems="true">
                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
            </asp:DropDownList>
        </td>
        <td class="tdTitle">
            <p>
                Sản phẩm bán chạy</p>
        </td>
        <td>
            <asp:CheckBox ID="cbSanPhamBanChay" runat="server" />
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            Ảnh đại diện:
        </td>
        <td colspan="3">
            <asp:FileUpload ID="fulImage" runat="server" />
            <asp:HyperLink runat="server" Target="_blank" ID="hplImage" Text="[Xem ảnh]" Visible="false"></asp:HyperLink>
        </td>
    </tr>
    <tr runat="server" id="trHinhAnh">
        <td class="tdTitle">
            Ảnh mô tả chi tiết:
        </td>
        <td colspan="3">
            <table width="100%" border="1">
                <tr>
                    <td class="style8">
                        Hình ảnh 1
                    </td>
                    <td class="style9">
                        <asp:TextBox ID="txtTitle1" runat="server" Width="179px"></asp:TextBox>
                        <asp:FileUpload ID="fuImage1" runat="server" />
                        &nbsp;
                        <asp:HyperLink ID="HyperLink1" runat="server" Target="_blank" Visible="False">[Xem 
        ảnh]</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td class="style8">
                        Hình ảnh 2
                    </td>
                    <td class="style9">
                        <asp:TextBox ID="txtTitle2" runat="server" Width="179px" ValidationGroup="submitGrp"></asp:TextBox>
                        <asp:FileUpload ID="fuImage2" runat="server" />
                        &nbsp;
                        <asp:HyperLink ID="HyperLink2" runat="server" Target="_blank" Visible="False">[Xem 
        ảnh]</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td class="style8">
                        Hình ảnh 3
                    </td>
                    <td class="style9">
                        <asp:TextBox ID="txtTitle3" runat="server" Width="179px" ValidationGroup="submitGrp"></asp:TextBox>
                        <asp:FileUpload ID="fuImage3" runat="server" />
                        &nbsp;
                        <asp:HyperLink ID="HyperLink3" runat="server" Target="_blank" Visible="False">[Xem 
        ảnh]</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td class="style8">
                        Hình ảnh 4
                    </td>
                    <td class="style9">
                        <asp:TextBox ID="txtTitle4" runat="server" Width="179px" ValidationGroup="submitGrp"></asp:TextBox>
                        <asp:FileUpload ID="fuImage4" runat="server" />
                        &nbsp;
                        <asp:HyperLink ID="HyperLink4" runat="server" Target="_blank" Visible="False">[Xem 
        ảnh]</asp:HyperLink>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            Thông tin khác:
        </td>
        <td colspan="3">
            <asp:TabContainer ID="tcDetail" runat="server" ActiveTabIndex="0" Width="100%">
                <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Mô tả">
                    <ContentTemplate>
                        <asp:TextBox ID="txtMota" Width="100%" Height="200px" runat="server" TextMode="MultiLine"></asp:TextBox>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="Mô tả chi tiết">
                    <ContentTemplate>
                        <CKEditor:CKEditorControl FilebrowserImageBrowseUrl="/ckfinder/ckfinder.html?type=Images" FilebrowserImageUploadUrl="/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images" BasePath="/ckeditor/" ID="txtMoTaChiTiet" runat="server"></CKEditor:CKEditorControl>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel6" runat="server" HeaderText="Khác">
                    <ContentTemplate>
                        <CKEditor:CKEditorControl FilebrowserImageBrowseUrl="/ckfinder/ckfinder.html?type=Images" FilebrowserImageUploadUrl="/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images" BasePath="/ckeditor/" ID="txtBaoHanh" runat="server"></CKEditor:CKEditorControl>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel4" Visible="true" runat="server" HeaderText="Từ khóa">
                    <ContentTemplate>
                        Tags:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
                        <asp:TextBox ID="txtTuKhoa" TextMode="MultiLine" runat="server" Width="50%"></asp:TextBox>
                    </ContentTemplate>
                </asp:TabPanel>
            </asp:TabContainer>
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            Thông tin khác TA:
        </td>
        <td colspan="3">
            <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Width="100%">
                <asp:TabPanel ID="TabPanel10" runat="server" HeaderText="Mô tả TA">
                    <ContentTemplate>
                        <asp:TextBox ID="txteMota" Width="100%" Height="200px" runat="server" TextMode="MultiLine"></asp:TextBox>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel12" runat="server" HeaderText="Mô tả chi tiết TA">
                    <ContentTemplate>
                        <CKEditor:CKEditorControl FilebrowserImageBrowseUrl="/ckfinder/ckfinder.html?type=Images" FilebrowserImageUploadUrl="/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images" BasePath="/ckeditor/" ID="txteMoTaChiTiet" runat="server"></CKEditor:CKEditorControl>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel14" runat="server" HeaderText="Khác">
                    <ContentTemplate>
                        <CKEditor:CKEditorControl FilebrowserImageBrowseUrl="/ckfinder/ckfinder.html?type=Images" FilebrowserImageUploadUrl="/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images" BasePath="/ckeditor/" ID="txetBaoHanh" runat="server"></CKEditor:CKEditorControl>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel16" Visible="true" runat="server" HeaderText="Từ khóa TA">
                    <ContentTemplate>
                        Tags:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
                        <asp:TextBox ID="txteTuKhoa" TextMode="MultiLine" runat="server" Width="50%"></asp:TextBox>
                    </ContentTemplate>
                </asp:TabPanel>
            </asp:TabContainer>
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
        </td>
        <td colspan="3">
            <div style="float: left; margin-right: 10px; margin-top: 10px;">
                <dxe:ASPxButton ID="btSave" runat="server" Text="Lưu" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css"
                    CssPostfix="Soft_Orange" OnClick="btSave_Click">
                </dxe:ASPxButton>
            </div>
            <div style="margin-top: 10px;">
                <dxe:ASPxButton ID="btCancel" runat="server" Text="Hủy" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css"
                    CssPostfix="Soft_Orange">
                </dxe:ASPxButton>
            </div>
        </td>
    </tr>
</table>
